package components;

import java.awt.geom.Rectangle2D;

import entities.Entity;

public class BasicCollisionModel extends CollisionModel {
	
	private float width;
	private float height;
	
	public BasicCollisionModel(Entity e, float width, float height) {
		super(e);
		this.width = width;
		this.height = height;
	}

	@Override
	public Rectangle2D getAABB() {
		return new Rectangle2D.Float(entity.getX() - width / 2.0f, entity.getY() - height / 2.0f, width, height);
	}

}
